package mr

import (
	"time"
)

type TaskPhase int

const (
	MapPhase    TaskPhase = 0
	ReducePhase TaskPhase = 1
)

type Task struct {
	FileName string
	NReduce  int
	NMaps    int
	Seq      int
	Phase    TaskPhase
	Alive    bool
}

type TaskStat struct {
	Status    int
	WorkId    int
	StartTime time.Time
	complete  bool
}
